/*
 * DBTable_Logs.h
 *      Author: DePhille
 */

#ifndef DBTABLE_LOGS_H_
#define DBTABLE_LOGS_H_

// Include log struct:
#include "Log.h"
#include "Log_Mini.h"

// Methods:
static gboolean 	PC_DBTable_Logs_MakeTable(const gchar* tblName);
static PC_MiniLog*	PC_DBTable_Logs_FetchOneMiniLog(sqlite3_stmt* stmt);
static PC_Log*		PC_DBTable_Logs_FetchOne(sqlite3_stmt* stmt);
static GList*		PC_DBTable_Logs_FetchMiniLogs(const PurpleAccount* account);
static gboolean		PC_DBTable_Logs_FillIn(PC_Log* log);
static gboolean		PC_DBTable_Logs_Insert(const PC_Log* log);
static gboolean		PC_DBTable_Logs_Delete(const PC_Log* log);
static gboolean		PC_DBTable_Logs_Update(const PC_Log* originalLog, const PC_Log* newLog);
static gboolean		PC_DBTable_Logs_Exists(const PC_Log* log);
static GList*		PC_DBTable_Logs_GetRev0(const PurpleAccount* account);


#endif /* DBTABLE_LOGS_H_ */
